package com.wwf.springsession.controller.config;

import com.wwf.springsession.intercepter.CommonIntercepter;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author wwf
 * @date 2020年12月31日 16:18:57
 */
@Configuration
public class LoginConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new CommonIntercepter()).addPathPatterns("/index/*");
    }
}
